package alp.starcode.framework.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 订单状态表(order_status)
 * </p>
 *
 * @author yanglin
 * @since 2021-11-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("order_status")
public class OrderStatus extends Model<OrderStatus> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField("orderUuid")
    private String orderUuid;

    /**
     * 用户Uuid
     */
    @TableField("userUuid")
    private String userUuid;

    /**
     * 订单状态(1.商家已接单2.骑手派送中3.订单已完成4.购物车6.未付款)
     */
    @TableField("orderStatus")
    private String orderStatus;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Long createTime;

}
